<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
    <title>inputEx - RTEField Usage</title>

    <link rel="stylesheet" type="text/css" href="Assets/inputex/lib/yui/assets/skins/sam/skin.css" />
    <link type='text/css' rel='stylesheet' href='Assets/inputex/css/inputEx.css' />

    <script type="text/javascript" src="Assets/inputex/lib/yui/yahoo/yahoo.js"></script>

    <script type="text/javascript" src="Assets/inputex/lib/yui/dom/dom.js"></script>

    <script type="text/javascript" src="Assets/inputex/lib/yui/event/event.js"></script>

    <script type="text/javascript" src="Assets/inputex/lib/yui/container/container-min.js"></script>

    <script type="text/javascript" src="Assets/inputex/lib/yui/element/element.js"></script>

    <script type="text/javascript" src="Assets/inputex/lib/yui/menu/menu-min.js"></script>

    <script type="text/javascript" src="Assets/inputex/lib/yui/button/button-min.js"></script>

    <script type="text/javascript" src="Assets/inputex/lib/yui/editor/editor-min.js"></script>

    <script src="Assets/inputex/js/inputex.js" type='text/javascript'></script>

    <script src="Assets/inputex/js/Field.js" type='text/javascript'></script>

    <script src="Assets/inputex/js/fields/StringField.js" type='text/javascript'></script>

    <script src="Assets/inputex/js/fields/EmailField.js" type='text/javascript'></script>

    <script src="Assets/inputex/js/fields/UrlField.js" type='text/javascript'></script>

    <script src="Assets/inputex/js/fields/SelectField.js" type='text/javascript'></script>

    <script src="Assets/inputex/js/fields/HiddenField.js" type='text/javascript'></script>

    <script src="Assets/inputex/js/fields/RTEField.js" type='text/javascript'></script>

    <script src="Assets/inputex/js/Group.js" type='text/javascript'></script>

    <script src="Assets/inputex/js/Form.js" type='text/javascript'></script>

</head>
<body class="yui-skin-sam">
    <div class='demoContainer' id='container1'>
    </div>

    <script type="text/javascript">
            YAHOO.util.Event.addListener(window, 'load', function() {

            BC = [{
                type: 'submit', value: "Submit"
                }, {
                type: 'button', value: "Cancel",
                onClick: function(e) {
                    OnCancel.run(e, this);
                }
            }];
            var FC = [{ "inputParams": { "name": "entityId", "value": "34" }, "type": "hidden" }, { "inputParams": { "name": "returnUrl", "value": "extra-dashboard.aspx?view=5&id=34" }, "type": "hidden" }, { "inputParams": { "name": "lang", "value": "en" }, "type": "hidden" }, { "inputParams": { "name": "pageUrl", "value": "extra-dashboard" }, "type": "hidden" }, { "inputParams": { "label": "Message", "name": "message" }, "type": "html"}];

            var YUI = YAHOO.util;
            new YAHOO.inputEx.Form({
                fields: FC
                , parentEl: "container1"
                , buttons: BC
                , onSubmit: function(e) {
                    YUI.Event.stopEvent(e);

                    if (!this.validate()) {
                        return;
                    }
                    if (command != "Delete") {
                        this.showMask();
                    }
                    OnSubmit.run(this.getValue(), this);
                }
            });

       });
    </script>

</body>
</html>
